<section app-tutorial-content>
<p>
Now let's improve our code by taking the workers' behavior out into a separate <em>module</em>. Create a module called <code>role.harvester</code>
with the help of the Modules section on the left of the script editor and define a <code>run</code> function inside the <code>module.exports</code> object,
containing the creep behavior.
</p>
<div class='objective'>
<div class='fa fa-caret-right'></div>
Create a <code>role.harvester</code> module.
</div>
<div class='objective'>
<div class='fa fa-caret-down'></div>
Documentation:
<ul>
<li>
<a app-nw-external-link href='http://docs.screeps.com/modules.html' target='_blank'>
Organizing scripts using modules
</a>
</li>
</ul>
</div>
<app:tutorial-code title='role.harvester'></app:tutorial-code>
<div class='tutorial-controls'>
<md:button class='md-raised md-primary' ng:click='Tutorial.close()'>Got it</md:button>
</div>
</section>
